package homework.ooday05;

public class SeasonDemo {
    public static void main(String[] args) {
        Season[] seasons = Season.values();
        for(int i=0;i<seasons.length;i++){
            System.out.println(seasons[i].name()+", "+seasons[i].getName());
        }

        Season s = Season.SUMMER;
        switch (s){
            case SPRING:
                System.out.println(s.getName()+"到，去晒太阳");
                break;
            case SUMMER:
                System.out.println(s.getName()+"到了，去晒太阳");
                break;
            case AUTUMN:
                System.out.println(s.getName()+"快到了，去晒太阳");
                break;
            case WINTER:
                System.out.println(s.getName()+"已经到了，去晒太阳");
                break;
        }
    }
}
